package com.saasitems.admin.web.restcontroller;

import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/1/4.
 */
@RestController
public class RestOrderInfoController {

//    @Autowired
//    private OrderInfoService orderInfoService;

//    @RequestMapping(value = "rest/orderinfo/add", method = RequestMethod.POST)
//    @ResponseBody
//    public Object add(@RequestBody AddOrderInfoVO vo) {
//        Map<String, Object> ret = new HashMap<String, Object>();
////        ret.put("status", "OK");
////        orderInfoService.insert(vo);
//        return ret;
//    }

    @RequestMapping(value = "rest/orderinfo/add", method = RequestMethod.GET)
    @ResponseBody
    public Object add() {
        Map<String, Object> ret = new HashMap<String, Object>();
        ret.put("status", "OK4");
//        orderInfoService.insert(vo);
        return ret;
    }
}